package com.laowang.project.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 合伙人分享会员明细对象 my_cyh_partner_vip_num
 *
 * @author laowang
 * @date 2024-01-25
 */
@NoArgsConstructor
@Data
public class MyCyhPartnerVipNum implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Integer id;

    /**
     * 合伙人级别
     */
    @Excel(name = "合伙人级别")
    @ApiModelProperty(value = "合伙人级别", required = false)
    private Integer partnerId;

    /**
     * 分享用户
     */
    @Excel(name = "分享用户")
    @ApiModelProperty(value = "分享用户", required = false)
    private Integer userId;

    /**
     * 会员级别
     */
    @Excel(name = "会员级别")
    @ApiModelProperty(value = "会员级别", required = false)
    private Integer vipLevel;

    /**
     * 被分享用户
     */
    @Excel(name = "被分享用户")
    @ApiModelProperty(value = "被分享用户", required = false)
    private Integer toUserId;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间", required = false)
    private Date created;

    @Transient
    private String nickname;

    @Transient
    private String avatar;
}
